function main_path = getMainPath(n)
% data_path = fullfile(fileparts(fileparts(mfilename('fullpath'))), '%data');

main_path = mfilename('fullpath');
for i = 1 : n
    main_path = fileparts(main_path);
end
